package com.dc.project.workflow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dc.common.validated.DeleteGroup;
import com.dc.common.validated.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 流程模型分类关联表(WfModelCategory)实体类
 *
 * @author zhuangcy
 * @since 2021-06-30 16:13:15
 */
@TableName("wf_model_category")
@Data
@ApiModel(value = "流程模型分类关联表")
public class WfModelCategory implements Serializable {
    private static final long serialVersionUID = 360718814392455167L;
    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class, DeleteGroup.class})
    @TableId(value = "mc_id", type = IdType.AUTO)
    @ApiModelProperty(name = "mcId", value = "id")
    private Integer mcId;
    /**
     * 分类ID
     */
    @TableField(value = "category_id")
    @ApiModelProperty(name = "categoryId", value = "分类ID")
    private Integer categoryId;
    /**
     * 模型ID
     */
    @TableField(value = "model_id")
    @ApiModelProperty(name = "modelId", value = "模型ID")
    private Integer modelId;
    /**
     * 是否默认（1默认，0不默认）
     */
    @TableField(value = "def_value")
    @ApiModelProperty(name = "defValue", value = "是否默认（1默认，0不默认）")
    private String defValue;


}